//
//  ReleaseForHelpVC.m
//  智慧小区
//
//  Created by 高永杨 on 2017/3/18.
//  Copyright © 2017年 zhongchuang. All rights reserved.
//

#import "ReleaseForHelpVC.h"

@interface ReleaseForHelpVC ()

@end

@implementation ReleaseForHelpVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"发布求助";
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range
 replacementText:(NSString *)text

{
    
    // Any new character added is passed in as the "text" parameter
    
    if ([text isEqualToString:@"\n"]) {
        // Be sure to test for equality using the "isEqualToString" message
        [textView resignFirstResponder];
        // Return FALSE so that the final '\n' character doesn't get added
        return FALSE;
        
    }
    // For any other character return TRUE so that the text gets added to the view
    return TRUE;
    
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
